package com.lhk.appframework.factory;

import android.content.Context;

import com.lhk.appframework.manager.ImplManagerHttpAsynhttp;
import com.lhk.appframework.manager.ImplManagerAppUserDefault;
//import com.lhk.appframework.manager.ImplManagerHttpVolley;
import com.lhk.appframework.manager.ImplManagerMapBaiDu;
import com.lhk.appframework.manager.ImplManagerNetPacketRequestDefault;
import com.lhk.appframework.manager.ImplManagerSharedPreferences;
import com.lhk.appframework.manager.ManagerAppUser;
import com.lhk.appframework.manager.ManagerHttp;
import com.lhk.appframework.manager.ManagerMap;
import com.lhk.appframework.manager.ManagerNetPacketRequest;
import com.lhk.appframework.manager.ManagerSharedPreferences;

public class FactoryManagerDefault extends FactoryManager {

	private static FactoryManagerDefault instance = null;
	private FactoryManagerDefault() {
		
	}
	
	public static FactoryManagerDefault getInstance(){
		if(instance == null){
			synchronized (FactoryManagerDefault.class) {
				if(instance == null){
					instance = new FactoryManagerDefault();
				}
			}
		}
		return instance;
	}
	
	
	@Override
	public ManagerNetPacketRequest getManagerNetPacketRequest() {
		// TODO Auto-generated method stub
		return ImplManagerNetPacketRequestDefault.getInstance();
	}

	@Override
	public ManagerHttp getManagerHttp() {
		// TODO Auto-generated method stub
//		return ImplManagerHttpVolley.getInstance();
		return ImplManagerHttpAsynhttp.getInstance();
	}

	@Override
	public ManagerMap getManagerMap(Context context) {
		// TODO Auto-generated method stub
		return ImplManagerMapBaiDu.getInstance(context);
	}

	@Override
	public ManagerAppUser getManagerAppUser(Context context) {
		// TODO Auto-generated method stub
		return ImplManagerAppUserDefault.getInstance(context);
	}

	@Override
	public ManagerSharedPreferences getManagerSharedPreferences(Context context) {
		// TODO Auto-generated method stub
		return ImplManagerSharedPreferences.getInstance(context);
	}

}
